$OpenBSD: patch-base_trace_event_malloc_dump_provider_cc,v 1.3 2017/04/28 22:22:36 robert Exp $
--- base/trace_event/malloc_dump_provider.cc.orig.port	Wed Apr 19 21:06:28 2017
+++ base/trace_event/malloc_dump_provider.cc	Thu Apr 27 19:55:58 2017
@@ -20,6 +20,8 @@
 
 #if defined(OS_MACOSX)
 #include <malloc/malloc.h>
+#elif defined(OS_BSD)
+#include <stdlib.h>
 #else
 #include <malloc.h>
 #endif
@@ -234,6 +236,9 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDump
   resident_size = main_heap_info.committed_size;
   allocated_objects_size = main_heap_info.allocated_size;
   allocated_objects_count = main_heap_info.block_count;
+#elif defined(OS_BSD)
+  total_virtual_size = 0;
+  allocated_objects_size = 0;
 #else
   struct mallinfo info = mallinfo();
   DCHECK_GE(info.arena + info.hblkhd, info.uordblks);
